﻿@model IEnumerable<SelectListItem>

@Html.DropDownList("Groups",Model)

<div id="divUsers">

</div>
<script type="text/javascript">
    $(function () {
        $("#Groups").change(function(){
            $("#divUsers").load("/Role/GetUsers", this[this.selectedIndex].value);
        });

        $("#Groups").change();
    })();
</script>